package com.changeover.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.changeover.dao.IUserDao;

@Service
public class LoginService implements ILoginService {

    @Autowired
    private IUserDao userDao;

    @Transactional(propagation=Propagation.REQUIRED,readOnly=true)
	public boolean isUserExistent(String username, String password) {
		return userDao.get(username, password) != null;
	}

}
